﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ManagerInterface.Master" AutoEventWireup="true" CodeBehind="ManageAuctionSession.aspx.cs" Inherits="spktNhom4DoAnCuoiKy.ManagerModules.ManageAuctionSession" %>
<%@ Register TagPrefix="uc" TagName="GoToPage" Src="~/GoToPage.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style3
        {
            width: 100%;
        }
        .style4
        {
            height: 18px;
            width: 498px;
        }
        .style5
        {
            width: 498px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table class="style3">
        <tr>
            <td bgcolor="#999999" class="style4">
                Quản lý phiên</td>
            <td class="style2">
            </td>
        </tr>
        <tr>
            <td class="style5">
                &nbsp;</td>
            <td align="right">
                Số Phiên/Trang
                <asp:DropDownList ID="ddlSoPhienTrenTrang" runat="server" Height="27px" 
                    Width="191px" AutoPostBack="True" 
                    onselectedindexchanged="ddlSoPhienTrenTrang_SelectedIndexChanged">
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>15</asp:ListItem>
                    <asp:ListItem>20</asp:ListItem>
                    <asp:ListItem>25</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
    </table>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <asp:GridView ID="gvPhien" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" Width="1020px" 
        onrowcreated="gvPhien_RowCreated" onsorting="gvPhien_Sorting" 
            onpageindexchanging="gvPhien_PageIndexChanging">
        <AlternatingRowStyle BackColor="#CCCCCC" />
        <Columns>
            <asp:TemplateField HeaderText="STT">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="STT" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="Mã Phiên" DataField="MaPhien" 
                SortExpression="MaPhien" />
            <asp:BoundField HeaderText="Nhóm Phiên" DataField="NhomPhien" 
                SortExpression="NhomPhien" />
            <asp:BoundField HeaderText="Loại Phiên" DataField="LoaiPhien" 
                SortExpression="LoaiPhien" />
            <asp:TemplateField HeaderText="Tình Trạng" SortExpression="TinhTrang">
                <EditItemTemplate>
                    <asp:DropDownList ID="DropDownList1" runat="server" Height="18px" Width="124px">
                        <asp:ListItem>Đang Đấu Giá</asp:ListItem>
                        <asp:ListItem>Kết Thúc</asp:ListItem>
                    </asp:DropDownList>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("TinhTrang") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="Người quản lý" DataField="NguoiDangTin" 
                SortExpression="NguoiDangTin" />
            <asp:BoundField HeaderText="Thời Gian Kết Thúc" DataField="ThoiGianKetThuc" 
                SortExpression="ThoiGianKetThuc" />
            <asp:HyperLinkField Text="Chi Tiết" DataNavigateUrlFields="MaPhien" 
                DataNavigateUrlFormatString="~/UserModules/SessionDetails.aspx?SessionId={0}" />
        </Columns>
        <HeaderStyle BackColor="#0066FF" Font-Names="Arial" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FF33CC" />
        <SortedDescendingHeaderStyle BackColor="#66FF33" />
    </asp:GridView>
   <uc:gotopage runat="server" OnButtonClicked="GoToPage_Clicked" 
            ID="ControlGoToPage"    />
          
    </ContentTemplate>
    <Triggers>
    <asp:AsyncPostBackTrigger ControlID="ddlSoPhienTrenTrang" />
    </Triggers>
    </asp:UpdatePanel>
    
          
          
            <p>



        <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px">
        </asp:DetailsView>
    </p>
</asp:Content>
